package com.octopus.optiworks.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table
public class Step130DataRemark implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private Long id;
	
	private Step130Data step130Data;
	
	private String operator;
	
	private Date date;
	
	private String remark;
	
	private String testResult;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	@Column
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Column
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column
	public String getTestResult() {
		return testResult;
	}

	public void setTestResult(String testResult) {
		this.testResult = testResult;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "STEP130DATAID")
	public Step130Data getStep130Data() {
		return step130Data;
	}

	public void setStep130Data(Step130Data step130Data) {
		this.step130Data = step130Data;
	}
}
